/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package cn.edu.cuc.yjsy.model;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.AbstractEnumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Matriculand Category</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see cn.edu.cuc.yjsy.model.ModelPackage#getMatriculandCategory()
 * @model
 * @generated
 */
public final class MatriculandCategory extends AbstractEnumerator {
	/**
	 * The '<em><b>Directional</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Directional</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DIRECTIONAL_LITERAL
	 * @model name="Directional" literal="定向"
	 * @generated
	 * @ordered
	 */
	public static final int DIRECTIONAL = 1;

	/**
	 * The '<em><b>Indirectional</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Indirectional</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #INDIRECTIONAL_LITERAL
	 * @model name="Indirectional" literal="非定向"
	 * @generated
	 * @ordered
	 */
	public static final int INDIRECTIONAL = 0;

	/**
	 * The '<em><b>Consign</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Consign</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CONSIGN_LITERAL
	 * @model name="Consign" literal="委托"
	 * @generated
	 * @ordered
	 */
	public static final int CONSIGN = 2;

	/**
	 * The '<em><b>Commoner</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Commoner</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COMMONER_LITERAL
	 * @model name="Commoner" literal="自筹"
	 * @generated
	 * @ordered
	 */
	public static final int COMMONER = 3;

	/**
	 * The '<em><b>Directional</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DIRECTIONAL
	 * @generated
	 * @ordered
	 */
	public static final MatriculandCategory DIRECTIONAL_LITERAL = new MatriculandCategory(DIRECTIONAL, "Directional", "定向");

	/**
	 * The '<em><b>Indirectional</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #INDIRECTIONAL
	 * @generated
	 * @ordered
	 */
	public static final MatriculandCategory INDIRECTIONAL_LITERAL = new MatriculandCategory(INDIRECTIONAL, "Indirectional", "非定向");

	/**
	 * The '<em><b>Consign</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CONSIGN
	 * @generated
	 * @ordered
	 */
	public static final MatriculandCategory CONSIGN_LITERAL = new MatriculandCategory(CONSIGN, "Consign", "委托");

	/**
	 * The '<em><b>Commoner</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COMMONER
	 * @generated
	 * @ordered
	 */
	public static final MatriculandCategory COMMONER_LITERAL = new MatriculandCategory(COMMONER, "Commoner", "自筹");

	/**
	 * An array of all the '<em><b>Matriculand Category</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final MatriculandCategory[] VALUES_ARRAY =
		new MatriculandCategory[] {
			DIRECTIONAL_LITERAL,
			INDIRECTIONAL_LITERAL,
			CONSIGN_LITERAL,
			COMMONER_LITERAL,
		};

	/**
	 * A public read-only list of all the '<em><b>Matriculand Category</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Matriculand Category</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MatriculandCategory get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MatriculandCategory result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Matriculand Category</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MatriculandCategory getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MatriculandCategory result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Matriculand Category</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MatriculandCategory get(int value) {
		switch (value) {
			case DIRECTIONAL: return DIRECTIONAL_LITERAL;
			case INDIRECTIONAL: return INDIRECTIONAL_LITERAL;
			case CONSIGN: return CONSIGN_LITERAL;
			case COMMONER: return COMMONER_LITERAL;
		}
		return null;	
	}

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private MatriculandCategory(int value, String name, String literal) {
		super(value, name, literal);
	}

} //MatriculandCategory
